home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / printing / vsview17 / ftoolbox.frm < prev    next >
Text File  |  1994-09-06  |  11KB  |  349 lines

  1. VERSION 2.00
  2. Begin Form ftoolbox 
  3.    BackColor       =   &H0080FFFF&
  4.    Caption         =   "Floating Controls"
  5.    ClientHeight    =   5115
  6.    ClientLeft      =   300
  7.    ClientTop       =   1440
  8.    ClientWidth     =   6030
  9.    Height          =   5580
  10.    Left            =   210
  11.    LinkTopic       =   "Form2"
  12.    ScaleHeight     =   5115
  13.    ScaleWidth      =   6030
  14.    Top             =   1065
  15.    Width           =   6210
  16.    Begin PictureBox Picture4 
  17.       BackColor       =   &H00C0C0C0&
  18.       Height          =   1380
  19.       Left            =   3675
  20.       ScaleHeight     =   1185
  21.       ScaleWidth      =   2085
  22.       TabIndex        =   12
  23.       Top             =   3465
  24.       Width           =   2115
  25.       Begin vsInForm VSInForm3 
  26.          BarColor        =   &H00008080&
  27.          BarColorInactive=   &H00008080&
  28.          BarHeight       =   11
  29.          CustomFrame     =   -1  'True
  30.          FrameWidth      =   1
  31.          Left            =   315
  32.          PictLeft0       =   FTOOLBOX.FRX:0000
  33.          Top             =   660
  34.       End
  35.       Begin vsViewPort vsViewPort3 
  36.          BackColor       =   &H00808080&
  37.          Height          =   960
  38.          Left            =   105
  39.          Top             =   105
  40.          VirtualHeight   =   0
  41.          VirtualWidth    =   3270
  42.          Width           =   1905
  43.          Begin PictureBox Picture2 
  44.             BackColor       =   &H00808080&
  45.             BorderStyle     =   0  'None
  46.             Height          =   435
  47.             Index           =   5
  48.             Left            =   105
  49.             Picture         =   FTOOLBOX.FRX:00CA
  50.             ScaleHeight     =   435
  51.             ScaleWidth      =   435
  52.             TabIndex        =   17
  53.             Top             =   105
  54.             Width           =   435
  55.          End
  56.          Begin PictureBox Picture2 
  57.             BackColor       =   &H00808080&
  58.             BorderStyle     =   0  'None
  59.             Height          =   540
  60.             Index           =   1
  61.             Left            =   735
  62.             Picture         =   FTOOLBOX.FRX:03CC
  63.             ScaleHeight     =   540
  64.             ScaleWidth      =   540
  65.             TabIndex        =   16
  66.             Top             =   105
  67.             Width           =   540
  68.          End
  69.          Begin PictureBox Picture2 
  70.             BackColor       =   &H00808080&
  71.             BorderStyle     =   0  'None
  72.             Height          =   540
  73.             Index           =   2
  74.             Left            =   1365
  75.             Picture         =   FTOOLBOX.FRX:06CE
  76.             ScaleHeight     =   540
  77.             ScaleWidth      =   540
  78.             TabIndex        =   15
  79.             Top             =   105
  80.             Width           =   540
  81.          End
  82.          Begin PictureBox Picture2 
  83.             BackColor       =   &H00808080&
  84.             BorderStyle     =   0  'None
  85.             Height          =   540
  86.             Index           =   3
  87.             Left            =   1995
  88.             Picture         =   FTOOLBOX.FRX:09D0
  89.             ScaleHeight     =   540
  90.             ScaleWidth      =   540
  91.             TabIndex        =   14
  92.             Top             =   105
  93.             Width           =   540
  94.          End
  95.          Begin PictureBox Picture2 
  96.             BackColor       =   &H00808080&
  97.             BorderStyle     =   0  'None
  98.             Height          =   540
  99.             Index           =   4
  100.             Left            =   2625
  101.             Picture         =   FTOOLBOX.FRX:0CD2
  102.             ScaleHeight     =   540
  103.             ScaleWidth      =   540
  104.             TabIndex        =   13
  105.             Top             =   105
  106.             Width           =   540
  107.          End
  108.       End
  109.    End
  110.    Begin PictureBox Picture1 
  111.       Height          =   2850
  112.       Index           =   1
  113.       Left            =   2520
  114.       Picture         =   FTOOLBOX.FRX:0FD4
  115.       ScaleHeight     =   2415
  116.       ScaleWidth      =   3030
  117.       TabIndex        =   11
  118.       Top             =   210
  119.       Width           =   3270
  120.       Begin vsInForm VSInForm1 
  121.          BarColor        =   &H00000080&
  122.          BarColorInactive=   &H00000080&
  123.          BarHeight       =   13
  124.          BarStyle        =   2  'NoBorder
  125.          ButtonsLeft     =   2  '2
  126.          CapAlign        =   1  'Left Center
  127.          CapColor        =   &H00FFFFFF&
  128.          CapColorInactive=   &H00FFFFFF&
  129.          CustomFrame     =   -1  'True
  130.          FontBold        =   -1  'True
  131.          FontItalic      =   0   'False
  132.          FontName        =   "Arial"
  133.          FontSize        =   8.25
  134.          FontStrikethru  =   0   'False
  135.          FontUnderline   =   0   'False
  136.          FrameColor      =   &H00C0C0C0&
  137.          FrameColorInactive=   &H00C0C0C0&
  138.          FrameStyle      =   4  'Raised Frame
  139.          FrameWidth      =   8
  140.          Index           =   1
  141.          Left            =   120
  142.          PictLeft0       =   FTOOLBOX.FRX:4D8A
  143.          PictLeft1       =   FTOOLBOX.FRX:4E54
  144.          Top             =   435
  145.       End
  146.    End
  147.    Begin PictureBox Picture3 
  148.       BackColor       =   &H00C0C0C0&
  149.       Height          =   3270
  150.       Left            =   105
  151.       ScaleHeight     =   2790
  152.       ScaleWidth      =   2190
  153.       TabIndex        =   2
  154.       Top             =   210
  155.       Width           =   2220
  156.       Begin ComboBox Combo1 
  157.          Height          =   300
  158.          Index           =   3
  159.          Left            =   1155
  160.          Style           =   2  'Dropdown List
  161.          TabIndex        =   10
  162.          Top             =   945
  163.          Width           =   960
  164.       End
  165.       Begin ComboBox Combo1 
  166.          Height          =   300
  167.          Index           =   2
  168.          Left            =   105
  169.          Style           =   2  'Dropdown List
  170.          TabIndex        =   9
  171.          Top             =   945
  172.          Width           =   960
  173.       End
  174.       Begin ComboBox Combo1 
  175.          Height          =   300
  176.          Index           =   1
  177.          Left            =   105
  178.          Style           =   2  'Dropdown List
  179.          TabIndex        =   8
  180.          Top             =   525
  181.          Width           =   2010
  182.       End
  183.       Begin vsInForm VSInForm1 
  184.          BarColor        =   &H00808000&
  185.          BarColorInactive=   &H00808000&
  186.          BarHeight       =   30
  187.          ButtonsLeft     =   0  '0
  188.          ButtonsRight    =   1  '1
  189.          CapColor        =   &H00FFFFFF&
  190.          CapColorInactive=   &H00FFFFFF&
  191.          CapMultiLine    =   -1  'True
  192.          Caption         =   "Rollup"
  193.          CustomFrame     =   -1  'True
  194.          FontBold        =   -1  'True
  195.          FontItalic      =   0   'False
  196.          FontName        =   "Arial"
  197.          FontSize        =   9.75
  198.          FontStrikethru  =   0   'False
  199.          FontUnderline   =   0   'False
  200.          FrameColor      =   &H00C0C0C0&
  201.          FrameColorInactive=   &H00C0C0C0&
  202.          FrameCorners    =   0   'False
  203.          FrameSizing     =   0  'None
  204.          FrameWidth      =   1
  205.          Index           =   0
  206.          Left            =   705
  207.          PictLeft0       =   FTOOLBOX.FRX:4F1E
  208.          PictLeft1       =   FTOOLBOX.FRX:4FE8
  209.          PictRight0      =   FTOOLBOX.FRX:50B2
  210.          Top             =   -90
  211.       End
  212.       Begin ComboBox Combo1 
  213.          Height          =   300
  214.          Index           =   0
  215.          Left            =   105
  216.          Style           =   2  'Dropdown List
  217.          TabIndex        =   7
  218.          Top             =   120
  219.          Width           =   2010
  220.       End
  221.       Begin CommandButton Command1 
  222.          Caption         =   "Save"
  223.          Height          =   345
  224.          Index           =   3
  225.          Left            =   1155
  226.          TabIndex        =   6
  227.          Top             =   1890
  228.          Width           =   960
  229.       End
  230.       Begin CommandButton Command1 
  231.          Caption         =   "Text"
  232.          Height          =   345
  233.          Index           =   2
  234.          Left            =   120
  235.          TabIndex        =   5
  236.          Top             =   1890
  237.          Width           =   1050
  238.       End
  239.       Begin CommandButton Command1 
  240.          Caption         =   "Paragraph"
  241.          Height          =   345
  242.          Index           =   1
  243.          Left            =   105
  244.          TabIndex        =   4
  245.          Top             =   1470
  246.          Width           =   1995
  247.       End
  248.       Begin CommandButton Command1 
  249.          Caption         =   "Apply"
  250.          Height          =   345
  251.          Index           =   0
  252.          Left            =   105
  253.          TabIndex        =   3
  254.          Top             =   2310
  255.          Width           =   1995
  256.       End
  257.    End
  258.    Begin vsInForm VSInForm2 
  259.       BarHeight       =   15
  260.       ButtonsRight    =   3  '3
  261.       CapMultiLine    =   -1  'True
  262.       Caption         =   "Custom Borders"
  263.       FrameStyle      =   4  'Raised Frame
  264.       Index           =   0
  265.       Left            =   2100
  266.       PictLeft0       =   FTOOLBOX.FRX:5212
  267.       PictRight0      =   FTOOLBOX.FRX:52DC
  268.       PictRight1      =   FTOOLBOX.FRX:53A6
  269.       PictRight2      =   FTOOLBOX.FRX:5470
  270.       Top             =   3570
  271.    End
  272.    Begin PictureBox Picture2 
  273.       Height          =   300
  274.       Index           =   0
  275.       Left            =   840
  276.       Picture         =   FTOOLBOX.FRX:553A
  277.       ScaleHeight     =   270
  278.       ScaleWidth      =   285
  279.       TabIndex        =   1
  280.       Top             =   3990
  281.       Visible         =   0   'False
  282.       Width           =   312
  283.    End
  284.    Begin PictureBox Picture1 
  285.       Height          =   315
  286.       Index           =   0
  287.       Left            =   390
  288.       Picture         =   FTOOLBOX.FRX:569A
  289.       ScaleHeight     =   285
  290.       ScaleWidth      =   315
  291.       TabIndex        =   0
  292.       Top             =   3990
  293.       Visible         =   0   'False
  294.       Width           =   345
  295.    End
  296.    Begin Image Pin 
  297.       Height          =   150
  298.       Index           =   1
  299.       Left            =   570
  300.       Picture         =   FTOOLBOX.FRX:57FA
  301.       Top             =   3750
  302.       Visible         =   0   'False
  303.       Width           =   150
  304.    End
  305.    Begin Image Pin 
  306.       Height          =   150
  307.       Index           =   0
  308.       Left            =   390
  309.       Picture         =   FTOOLBOX.FRX:58C4
  310.       Top             =   3750
  311.       Visible         =   0   'False
  312.       Width           =   150
  313.    End
  314. End
  315. Option Explicit
  316.  
  317. Sub Form_Load ()
  318.   
  319.   Combo1(0).AddItem "Arial"
  320.   Combo1(0).AddItem "Courier"
  321.   
  322.   Combo1(1).AddItem "Normal"
  323.   Combo1(1).AddItem "Bold"
  324.   
  325.   Combo1(2).AddItem "8.25"
  326.   Combo1(2).AddItem "12"
  327.   
  328.   Combo1(3).AddItem "points"
  329.   Combo1(3).AddItem "twips"
  330.  
  331.   Combo1(0).ListIndex = 0
  332.   Combo1(1).ListIndex = 0
  333.   Combo1(2).ListIndex = 0
  334.   Combo1(3).ListIndex = 0
  335. End Sub
  336.  
  337. Sub VSInForm1_ClickRButton (Index As Integer, Button As Integer)
  338.  
  339.   If Picture3.Height = 3270 Then
  340.       Picture3.Height = 470
  341.       VSinform1(0).PictRight0 = Picture2(0)
  342.   Else
  343.       Picture3.Height = 3270
  344.       VSinform1(0).PictRight0 = Picture1(0)
  345.   End If
  346.   
  347. End Sub
  348.  
  349.